package com.ljy.my_study.spring.tiny.study7.beans;

import java.util.HashMap;
import java.util.Map;

import com.ljy.my_study.spring.tiny.study7.beans.io.ResourceLoader;

public abstract class AbstractBeanDefinitionReader implements BeanDefinitionReader{

	private Map<String,BeanDefinition> registry;
	
	private ResourceLoader resourceLoader;
	
	public AbstractBeanDefinitionReader(ResourceLoader resourceLoader) {
		this.registry=new HashMap<>();
		this.resourceLoader=resourceLoader;
	}
	
	public Map<String,BeanDefinition> getRegistry(){
		return this.registry;
	}
	
	public ResourceLoader getResourceLoader() {
		return this.resourceLoader;
	}
}
